<script>
export default {
  data() {
    return {
      show:false,
      userAccount:{
        id:null
      },
      roles:[]
    }
  },
  methods:{
    open(row){
      this.userAccount = row;
      this.getRoles();
      this.show = true;
    },
    close(){
      this.show = false;
    },
    getRoles(){
      // /user-admin-web/admin/userAdminRoleUserAccount/getByUserAccountId
      this.$kt.request.send({
        uri: "/user-admin-web/admin/userAdminRoleUserAccount/getByUserAccountId",
        data: {
          userAccountId: this.userAccount.id
        },
        stateSuccess: (res) => {
          // console.log(res)
          this.roles = res.data;
          console.log(this.roles);
        },
        stateFail: (err) => {
          this.$message.error(err.errMsg);
        }
      })
    }
  }
}

</script>

<template>
  <el-dialog
    v-model="show"
    width="400px"
    :title="$i18n.zhToGlobal('角色管理')">
    
  </el-dialog>

</template>

<style scoped lang="scss">

</style>